package com.bcw.springtest.event.listener;

import com.bcw.springtest.event.entity.UserEntity;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service
public class UserListener {

    @EventListener
    public void onApplicationEvent(UserEntity userEntity) {
        System.out.println(userEntity);
    }
}
